package com.Ivy.object;

public class Person {
    private String Name;
    private  int Age;
    private boolean Sex;
    public static String name;

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public int getAge() {
        return Age;
    }

    public void setAge(int age) {
        Age = age;
    }

    public boolean isSex() {
        return Sex;
    }

    public void setSex(boolean sex) {
        Sex = sex;
    }

    //提供一个非静态的sayHi方法
    public void sayHi() {
        System.out.println("大家好，我是" + Name + "，来自美国");
    }
        public static void sayHello(){
            System.out.println("大家好，我是" + name + ",来自俄罗斯");
        }

}
